package com.ruoyi.workflow.event;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.ApplicationEvent;

import java.util.Map;

public class NeedRollBackEvent extends ApplicationEvent {

    private String processDefinitionKey;

    private Map<String, Object> processVariables;

    public NeedRollBackEvent(Object source, String processDefinitionKey, Map<String, Object> processVariables) {
        super(source);
        this.processDefinitionKey = processDefinitionKey;
        this.processVariables = processVariables;
    }

    public String getProcessDefinitionKey() {
        return processDefinitionKey;
    }

    public void setProcessDefinitionKey(String processDefinitionKey) {
        this.processDefinitionKey = processDefinitionKey;
    }

    public Map<String, Object> getProcessVariables() {
        return processVariables;
    }

    public void setProcessVariables(Map<String, Object> processVariables) {
        this.processVariables = processVariables;
    }
}
